package io.renren.modules.offer.dao;

import io.renren.modules.offer.entity.OfferEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author haijun.zhang
 * @email haijun917@qq.com
 * @date 2018-08-05 00:43:36
 */
public interface OfferDao extends BaseMapper<OfferEntity> {
	OfferEntity getOfferByDspOfferId(@Param("dspOfferId") int dspOfferId, @Param("sspChannelId") int sspChannelId);
	List<OfferEntity> getOffersByPushFlag();
	void updateOfferSetBatchNo(@Param("sspChannelId")int sspChannelId);
}
